package com.example.demo.service.impl;

import com.example.demo.mapper.LogMapper;
import com.example.demo.module.log.LogBean;
import com.example.demo.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;

@Repository
@Service("logService")
public class LogServiceImpl implements LogService {

    @Autowired
    private LogMapper logMapper;

    @Override
    public int add(LogBean logBean) {
        return logMapper.add(logBean);
    }

    @Override
    public List<LogBean> selectAll() {
        return logMapper.selectAll();
    }
}
